#!/usr/bin/perl

use warnings;
use strict;

open (SAMPLE, "sample.file") or die $!;

foreach (<SAMPLE>) {
    if ( $_ =~ /Tommy Savage:.*:.*:(.*):.*/) {
        printf "Tommy Savage's birthday is %s.\n", $1;
    }
}

close SAMPLE;
